package com.ckv.qcm.view.testUI;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.ckv.qcm.view.UI_MasterFrame;

public class TestInterface {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		
		try {
		    // Set System L&F
	        UIManager.setLookAndFeel(
	            UIManager.getSystemLookAndFeelClassName());
	    } 
	    catch (UnsupportedLookAndFeelException e) {
	       // handle exception
	    }
	    catch (ClassNotFoundException e) {
	       // handle exception
	    }
	    catch (InstantiationException e) {
	       // handle exception
	    }
	    catch (IllegalAccessException e) {
	       // handle exception
	    }
		
		// TEST DE UI_AUTH
//		UI_MasterFrame masterFrame = new UI_MasterFrame();
//		masterFrame.setVisible(true);
//		masterFrame.showAuthUI();
		
		//TEST DE THEMEPANEL
//		JFrame frame = new JFrame();
//		frame.setBounds(200, 200, 200, 50);
//		ThemePanel pane = new ThemePanel(new Theme(1, "THEME"));
//		frame.add(pane);
//		frame.pack();
//		frame.setVisible(true);
		
		
		//TEST DE LISTTHEME
//		JFrame frame = new JFrame();
//		frame.setBounds(200, 200, 200, 50);
//		
//		ListPanel list = new ListPanel(200, 30, 200);
//		ThemePanel pane = new ThemePanel(new Theme(1, "THEME"));
//		ThemePanel pane2 = new ThemePanel(new Theme(2, "THEME2"));
//		ThemePanel pane3 = new ThemePanel(new Theme(3, "THEME3"));
//		ThemePanel pane4 = new ThemePanel(new Theme(4, "THEME4"));
//		ThemePanel pane5 = new ThemePanel(new Theme(5, "THEME5"));
//		ThemePanel pane6 = new ThemePanel(new Theme(6, "THEME6"));
//		ThemePanel pane7 = new ThemePanel(new Theme(7, "THEME7"));
//		ThemePanel pane8 = new ThemePanel(new Theme(8, "THEME8"));
//		ThemePanel pane9 = new ThemePanel(new Theme(9, "THEME9"));
//		ThemePanel pane10 = new ThemePanel(new Theme(10, "THEME10"));
//		ThemePanel pane11 = new ThemePanel(new Theme(11, "THEME11"));
//		ThemePanel pane12 = new ThemePanel(new Theme(9, "THEME12"));
//		ThemePanel pane13 = new ThemePanel(new Theme(10, "THEME13"));
//		list.addPanel(pane);
//		list.addPanel(pane2);
//		list.addPanel(pane3);
//		list.addPanel(pane4);
//		list.addPanel(pane5);
//		list.addPanel(pane6);
//		list.addPanel(pane7);
//		list.addPanel(pane8);
//		list.addPanel(pane9);
//		list.addPanel(pane10);
//		list.addPanel(pane11);
//		list.addPanel(pane12);
//		list.addPanel(pane13);
//		
//		frame.add(list);
//		frame.pack();
//		frame.setVisible(true);
		
		
		//TEST UI_GESTTHEMES
//		JFrame frame = new JFrame();
//		frame.setBounds(200, 200, 200, 50);
//		
//		JPanel p = new JPanel(new BorderLayout());
//		
//		UI_GestThemes uiTemes = new UI_GestThemes(300, 400);
//		
//
//		p.add(uiTemes,BorderLayout.CENTER);
//		
//		frame.add(p);
//		frame.pack();
//		frame.setVisible(true);
		
		//System.out.println("List dimension : width -> " + uiSTg.getListThemesPanel().getWidth() + " height -> " + uiTemes.getListThemesPanel().getHeight());
		
	    
		UI_MasterFrame masterFrame = UI_MasterFrame.getInstance();
		masterFrame.setVisible(true);
		masterFrame.showGestThemeUI();

	    
	    
		//TEST UI_GESTTHEMES
//		JFrame frame = new JFrame();
//		frame.setBounds(200, 200, 200, 50);
//		
//		JPanel p = new JPanel(new BorderLayout());
//		
//		Answer a1 = new Answer(1,1,"Reponse 1",true);
//		Answer a2 = new Answer(1,1,"Reponse 2",false);
//		Answer a3 = new Answer(1,1,"Reponse 3",true);
//		
//		AnswerPanel p1 = new AnswerPanel(a1, Mode.READ);
//		p1.setUseEnteredChangeColor(false);
//		p1.setUseSelectedChangeColor(false);
//		AnswerPanel p2 = new AnswerPanel(a2, Mode.READ);
//		p2.setUseEnteredChangeColor(false);
//		p2.setUseSelectedChangeColor(false);
//		AnswerPanel p3 = new AnswerPanel(a3, Mode.READ);
//		p3.setUseEnteredChangeColor(false);
//		p3.setUseSelectedChangeColor(false);
//		
//		ListPanel list = new ListPanel(200,120,300);
//		list.addPanel(p1);
//		list.addPanel(p2);
//		list.addPanel(p3);
//		
//
//		p.add(list,BorderLayout.CENTER);
//		
//		frame.add(p);
//		frame.pack();
//		frame.setVisible(true);
		
		
	}

}
